package com.group.project.hrms.service.impl;

import com.group.project.hrms.entity.DingAuthInfo;
import com.group.project.hrms.mapper.DingAuthInfoMapper;
import com.group.project.hrms.service.IDingAuthInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DingAuthInfoService implements IDingAuthInfoService {

    @Autowired
    private DingAuthInfoMapper dingAuthInfoMapper;


    @Override
    public int insertDingAuthInfo(DingAuthInfo dingAuthInfo) {
        return dingAuthInfoMapper.insert(dingAuthInfo);
    }

    @Override
    public int deleteDingAuthInfo(DingAuthInfo dingAuthInfo) {
        return dingAuthInfoMapper.deleteByPrimaryKey(dingAuthInfo);
    }

    @Override
    public int updateDingAuthInfo(DingAuthInfo dingAuthInfo) {
        return dingAuthInfoMapper.updateByPrimaryKey(dingAuthInfo);
    }

    @Override
    public DingAuthInfo selectOneDingAuthInfo(DingAuthInfo dingAuthInfo) {
        return dingAuthInfoMapper.selectByPrimaryKey(dingAuthInfo);
    }

    @Override
    public List<DingAuthInfo> selectAllDingAuthInfo() {
        return dingAuthInfoMapper.selectAll();
    }
}
